/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_product_attr_selected.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PRODUCT_ATTR_SELECTED
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_product_attr_selected.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PRODUCT_ATTR_SELECTED::CTable_PPM_PRODUCT_ATTR_SELECTED( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PRODUCT_ATTR_SELECTED" );
  prepareTable();
  prepareQuery();
 
  PRODUCT_ATTR_ID.setField( "PRODUCT_ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ATTR_ID );
  PRODUCT_ID.setField( "PRODUCT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ID );
  PRODUCT_CD.setField( "PRODUCT_CD", DATA_CHAR, 20, 0 );
  makeTableItem( PRODUCT_CD );
  ATTR_CD.setField( "ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_CD );
  DEFAULT_VALUE.setField( "DEFAULT_VALUE", DATA_CHAR, 256, 0 );
  makeTableItem( DEFAULT_VALUE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  STATE_CD.setField( "STATE_CD", DATA_CHAR, 6, 0 );
  makeTableItem( STATE_CD );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  PRODUCT_ATTR_DESC.setField( "PRODUCT_ATTR_DESC", DATA_CHAR, 2048, 0 );
  makeTableItem( PRODUCT_ATTR_DESC );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
}


CTable_PPM_PRODUCT_ATTR_SELECTED::CTable_PPM_PRODUCT_ATTR_SELECTED( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PRODUCT_ATTR_SELECTED" );
  prepareTable();
  prepareQuery();
 
  PRODUCT_ATTR_ID.setField( "PRODUCT_ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ATTR_ID );
  PRODUCT_ID.setField( "PRODUCT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ID );
  PRODUCT_CD.setField( "PRODUCT_CD", DATA_CHAR, 20, 0 );
  makeTableItem( PRODUCT_CD );
  ATTR_CD.setField( "ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_CD );
  DEFAULT_VALUE.setField( "DEFAULT_VALUE", DATA_CHAR, 256, 0 );
  makeTableItem( DEFAULT_VALUE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  STATE_CD.setField( "STATE_CD", DATA_CHAR, 6, 0 );
  makeTableItem( STATE_CD );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  PRODUCT_ATTR_DESC.setField( "PRODUCT_ATTR_DESC", DATA_CHAR, 2048, 0 );
  makeTableItem( PRODUCT_ATTR_DESC );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
}

CTable_PPM_PRODUCT_ATTR_SELECTED::~CTable_PPM_PRODUCT_ATTR_SELECTED( )
{
    close();
}

